package com.qyhl.school.school.column.list;


import com.qyhl.webtv.commonlib.entity.school.SchoolListBean;

import java.util.List;

public class SchoolColumnListPresenter implements SchoolColumnListContract.SchoolColumnListPresenter {
    private SchoolColumnListContract.SchoolColumnListView mView;
    private SchoolColumnListModel mModel;

    public SchoolColumnListPresenter(SchoolColumnListContract.SchoolColumnListView mView) {
        this.mView = mView;
        this.mModel = new SchoolColumnListModel(this);
    }

    @Override
    public void getSchoolList(int type, int lastId) {
        mModel.getSchoolList(type, lastId);
    }

    @Override
    public void setSchoolList(List<SchoolListBean> beanList, boolean isMore) {
        mView.setSchoolList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
